﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public  class IndoorBLL
    {
        public bool AddFloors(params SqlParameter[] param)
        {
            Indoor indoor = new Indoor();
            return new IndoorDAL().Add(indoor, param);   
        }
        public Indoor GetIndoorById(SqlParameter[] param)
        {
            return new IndoorDAL().GetList<Indoor>(param).FirstOrDefault();
        }
    }
}
